package cn.wolfcode.luowowo.website_api.controller;

import cn.wolfcode.luowowo.test.domain.User;
import cn.wolfcode.luowowo.util.JsonResult;
import com.alibaba.fastjson.JSONReader;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @PostMapping("/test")
    public Object test(User user) {
        System.out.println(user);
        return JsonResult.success(user);
    }


    @GetMapping("/test1")
    public Object test1(String a,String b,String c) {
        return JsonResult.success("test1访问成功");
    }
}
